/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_regextableDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final StringExpression name;
    public final StringExpression regex;

    public T_dmap_regextableDetachedCriteria() {
	super(org.testis.orm.classes.T_dmap_regextable.class,
		org.testis.orm.classes.T_dmap_regextableCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	regex = new StringExpression("regex", this.getDetachedCriteria());
    }

    public T_dmap_regextableDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_dmap_regextableCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	regex = new StringExpression("regex", this.getDetachedCriteria());
    }

    public T_dmap_paramsDetachedCriteria createT_dmap_paramsCriteria() {
	return new T_dmap_paramsDetachedCriteria(
		createCriteria("ORM_T_dmap_params"));
    }

    public T_dmap_regextable uniqueT_dmap_regextable(PersistentSession session) {
	return (T_dmap_regextable) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_dmap_regextable[] listT_dmap_regextable(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_dmap_regextable[]) list.toArray(new T_dmap_regextable[list
		.size()]);
    }
}
